package com.nancy.java_design.builder.demo1;

public class Client {
    public static void main(String[] args) {
        // 创建一个HelloBikeBuilder对象，并调用它的construct方法来构建一辆自行车
        BikeBuilder builder = new HelloBikeBuilder();
        // 创建一个BikeDirector对象，并传入刚才创建的HelloBikeBuilder对象
        BikeDirector director = new BikeDirector(builder);

        // 调用BikeDirector对象的construct方法来构建一辆自行车
        Bike bike = director.construct();
        System.out.println(bike.toString());
    }
}
